package program;

public abstract class Field {
	//Name, Type, Color, Payment
	protected int number, payment, color, colorNr, propertyLevel = 0, fieldNr;
	protected String name, type;
	//protected String ownerOnField = "false"; //Lav boolean
	public String owner = "Bank";
	
	public Field(int number, int payment, String name, String type, int color, int colorNr) {
		this.number = number;
		this.payment = payment;
		this.name = name;
		this.type = type;
		this.color = color;
		this.colorNr = colorNr;
	}
	
	public String toString(){
		return "Name: "+name+" Type: "+type+" Color: "+color+" Payment: "+payment;
	}
	
	public String[] getInfo(){
		String[] fieldInfo = {name, type, Integer.toString(color), Integer.toString(payment), 
				owner, Integer.toString(propertyLevel), Integer.toString(number)};
		return fieldInfo;
	}
	
//	protected void setOwnerOnField(String ownerOnField){
//		this.ownerOnField = ownerOnField;
//	}
	
	//Skal tage Player classen som parameter
	public abstract void landOnField(Player player, Player tempOwner);
}